// 导入封装的请求实例
import request from '@/utils/request'
// 请求方法
export const getAdvLinkListApi = params => {
  return request({
    url: '/admin/ydd_link/list',
    method: 'get',
    params
  })
}
// 查询单个
export const getAdvLinkInfoApi = params => {
  return request({
    url: '/admin/ydd_link/rowInfo',
    method: 'get',
    params
  })
}

// 添加
export const addAdvLinkInfoApi = data => {
  return request({
    url: '/admin/ydd_link/add',
    method: 'post',
    data
  })
}
// 修改
export const updateAdvLinkInfoApi = data => {
  return request({
    url: '/admin/ydd_link/update',
    method: 'post',
    data
  })
}
// 删除
export const delAdvLinkInfoApi = params => {
  return request({
    url: '/admin/ydd_link/del',
    method: 'get',
    params
  })
}